import * as request from '../../utils/request';
import config from '../../config/config';

export function getPostList(params) {
  return request.get(`${config.organize_api.getPostList}`, params);
}

export function getPostPage(params) {
  return request.get(`${config.organize_api.getPostPage}`, params);
}

export function addPost(params) {
  return request.post(`${config.organize_api.addPost}`, params);
}

export function updatePost(params) {
  return request.post(`${config.organize_api.updatePost}`, params);
}

export function deletePost(params) {
  return request.post(`${config.organize_api.deletePost}`, params);
}
